<template>
  <video src="https://webstatic.mihoyo.com/upload/static-resource/2022/11/18/684900976bb505d9c5625f00e0f08ca9_1691328892365979772.mp4" loop="loop" autoplay="autoplay" muted="muted"
    class="loginVideo"></video>
    
  
    
        <div class='login-box'>
        <img src="" alt="">
        <img src="https://img1.baidu.com/it/u=87439862,3356026929&fm=253&fmt=auto&app=138&f=JPEG?w=400&h=565" alt="" class="bgimg">
        <namePass v-if="msg"></namePass>
        <iphon v-else></iphon>
    </div>
  


</template>
<script setup>
import {ref} from 'vue'
import namePass from './namePass.vue';
import iphon from './iphon.vue'
import {storeToRefs} from 'pinia'
import {useLogin} from '../../store/cart'
let changeLogin = useLogin()
let {msg} = storeToRefs(changeLogin)

</script>
<style lang="scss" scoped>
@font-face{
    font-family:myfont;
    src:url(../../汉仪黑咪体简.TTF)
  }
:deep(.el-input) {
  width: 280px
}

.login-box {
  // border: 1px solid;
  // background-color: rgba(255, 255, 255, 0);
  width: 400px;
  position: fixed;
  right: 300px;
  top: 250px;
  height: 500px;

  :deep(button) {
    width: 280px;
    height: 40px;
  }

  :deep(.qrcode) {
    height: 80px;
    text-align:end;
    .icon{
      width: 4em;
      height: 4em;
      cursor: pointer;
    }
  }

  :deep(.title) {
    font-size: 34px;
    text-align: center;
    padding-bottom: 40px;
    color: rgb(4, 150, 255);
    font-weight: 900;
    font-family:myfont;
  }

  :deep(.demo-ruleForm) {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-right: 40px;
  }

  :deep(.otherLogin) {
    margin-left: 135px;
    margin-top: 20px;
    padding-bottom: 40px;
    
    .icon{
      width: 2em;
      height: 2em;
      vertical-align: middle;
    }
  }

  :deep(input) {
    height: 45px;
    // background-color: rgba(0,0,0,0.2);
    // background-color: transparent;
    // border: 0;
    color:rgb(20, 156, 194);
    font-size:24px
  }

  :deep(.ipt3) {
    width: 130px;
    .el-input__wrapper {
      border-radius: 0px;
      // border-top-left-radius: 4px;
      // border-bottom-left-radius: 4px;
      box-shadow: none;
      
    }
  }

  :deep(.validateImg) {
    width: 150px;
    background-color: rgba(255,255,255,0.3);
    height: 47px;
    text-align: center;
    line-height: 47px;
    // border-top-right-radius: 4px;
    // border-bottom-right-radius: 4px;
    cursor: pointer;
    margin-bottom: 2px;
  }

  :deep(.el-form-item__label) {
    color: rgb(4, 150, 255) !important;
    height: 45px;
    line-height: 45px;
  }
  :deep(.el-input__wrapper){
    background-color: transparent;
    box-shadow: none;
    border: 0;
    border-bottom: 2px solid rgb(20, 156, 194);
    border-radius: 0px;
    

  }
}

.loginVideo {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
}
.bgimg{
    position: absolute;
    z-index: -1;
    opacity: 0.7;
}
//错误标识的颜色
// :deep(.el-form-item.is-error .el-input__validateIcon){
//   color:rgb(20, 156, 194) ;
// }

:deep(.el-input){
  --color: rgb(7, 241, 38);
}

</style>

  